package com.exam.demo.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.exam.demo.entity.ExamInfo;
import com.exam.demo.mapper.ExamInfoMapper;
import com.exam.demo.service.ExamInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 功能描述
 *
 * @author yxj30
 * @date 2022/03/16  19:29
 */
@Service
public class ExamInfoServiceImpl extends ServiceImpl<ExamInfoMapper, ExamInfo> implements ExamInfoService {
    @Resource
    ExamInfoMapper examInfoMapper;

    @Override
    public Page<ExamInfo> selectScore(Page<Object> objectPage, String paperName,String studentId) {
        return examInfoMapper.selectScore(objectPage,paperName,studentId);
    }

    @Override
    public Page<ExamInfo> checkPaper(Page<Object> objectPage, Integer status, String paperName, String studentName) {
        return examInfoMapper.checkPaper(objectPage,status,paperName,studentName);
    }

    @Override
    public Page<ExamInfo> getAnswerByStudentIdAndPaperId(String paperId, String studentId) {
        return examInfoMapper.getAnswerByStudentIdAndPaperId(paperId,studentId);
    }
}
